<?php


/**
 * Radcodes - SocialEngine Module
 *
 * @category   Application_Extensions
 * @package    Game
 * @copyright  Copyright (c) 2009-2010 Radcodes LLC (http://www.radcodes.com)
 * @license    http://www.radcodes.com/license/
 * @version    $Id$
 * @author     Vincent Van <vincent@radcodes.com>
 */
 
 
?>

  <form method="post" class="global_form_popup">
    <div>
      <h3><?php echo $this->translate("Download Game File / Photo") ?></h3>
      <?php if ($this->can_download_swf || $this->can_download_photo): ?>
	      <p>
	        <?php echo $this->translate("You can download the game swf and photo file from remote URL and store them on your server by clicking on button below.") ?>
	      </p>
	      <br />
	      <p>
	        <input type="hidden" name="confirm" value="<?php echo $this->game->getIdentity()?>" />
	        <?php if ($this->can_download_swf): ?>
	         <button type='submit' name="type" value="swf"><?php echo $this->translate("SWF File") ?></button>
          <?php endif; ?>
          <?php if ($this->can_download_photo): ?> 
	         <button type='submit' name="type" value="photo"><?php echo $this->translate("Photo File") ?></button>
	        <?php endif;?>
          <?php if ($this->can_download_swf && $this->can_download_photo): ?>
           <button type='submit' name="type" value="both"><?php echo $this->translate("Both Files") ?></button>
	        <?php endif; ?>
	        <?php echo $this->translate("or") ?>
	        <a href='javascript:void(0);' onclick='javascript:parent.Smoothbox.close()'>
	        <?php echo $this->translate("cancel") ?></a>
	      </p>
      <?php else: ?>
        <br />
			  <div class="tip">
			    <span>
			      <?php echo $this->translate('This game does not have swf and photo URL.');?>
			    </span>
			  </div>
      <?php endif; ?>

    </div>
  </form>

<?php if( @$this->closeSmoothbox ): ?>
<script type="text/javascript">
  TB_close();
</script>
<?php endif; ?>
